package com.ygqh.baby.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.CheckStatus;
import com.ygqh.baby.utils.DateConvertUtils;
import com.ygqh.baby.utils.RelativeDateFormat;

/**
 * 首页列表
 *
 * @author ZhangSai
 *
 */
public class YgIndexModel implements Serializable{
	/** 
	* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
	*/ 
	private static final long serialVersionUID = 1L;
	private Long publishId;
	private String tags;
	private String publishDesc;
	private Date createTime;
	// 晒单图
	private List<YgPublishDetailModel> publishDetail;

	private List<YgIndexCommentModel> comments = new ArrayList<YgIndexCommentModel>();

	// 头像
	private String userHeadImage;
	private Integer userLevel;
	private String userNickName;
	private Long userId;
	private Date babyBirthday;
	private CheckStatus checkStatus;


	public CheckStatus getCheckStatus() {
		return checkStatus;
	}
	public void setCheckStatus(CheckStatus checkStatus) {
		this.checkStatus = checkStatus;
	}
	public String getBabyBirthday() {
		return DateConvertUtils.getBabyBirthday(babyBirthday);
	}
	public Date getBabyBirthdayDate() {
		return babyBirthday;
	}

	public void setBabyBirthday(Date babyBirthday) {
		this.babyBirthday = babyBirthday;
	}

	public Long getPublishId() {
		return publishId;
	}

	public void setPublishId(Long publishId) {
		this.publishId = publishId;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getPublishDesc() {
		return publishDesc;
	}

	public void setPublishDesc(String publishDesc) {
		this.publishDesc = publishDesc;
	}

	public String getCreateTime() {
		return RelativeDateFormat.format(createTime);
	}

	public Date getCreateTimeDate() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public List<YgPublishDetailModel> getPublishDetail() {
		return publishDetail;
	}

	public void setPublishDetail(List<YgPublishDetailModel> publishDetail) {
		this.publishDetail = publishDetail;
	}



	public List<YgIndexCommentModel> getComments() {
		return comments;
	}

	public void setComments(List<YgIndexCommentModel> comments) {
		this.comments = comments;
	}

	public String getUserHeadImage() {
		return userHeadImage;
	}

	public void setUserHeadImage(String userHeadImage) {
		this.userHeadImage = userHeadImage;
	}

	public Integer getUserLevel() {
		return userLevel;
	}

	public void setUserLevel(Integer userLevel) {
		this.userLevel = userLevel;
	}

	public String getUserNickName() {
		return userNickName;
	}

	public void setUserNickName(String userNickName) {
		this.userNickName = userNickName;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}


}
